ImportOptions canImportAs() MethodImportOptions.canImportAs(ImportAsType) Description The canImportAs() method is used to determine whether a given file can be imported as a given ImportAsType, passed in as an argument. Parameters ImportAsType; one of: ImportAsType.COMP ImportAsType.FOOTAGE ImportAsType.COMP_CROPPED_LAYERS ImportAsType.PROJECT Returns Boolean. Example var io = new ImportOptions( File("c:\\foo.psd")); io.canImportAs( ImportAsType.COMP ) |